/**
* PlaylistEvent
* @author maze | guavestudios.com
* @version 0.1
*/

package ch.sfug.events {
	import flash.events.Event;

	/**
	 * Events for playlist playback
	 */
	public class PlaylistEvent extends Event{
		
		//{ STATIC
		public static const NEXT:String = "PlaylistEvent.NEXT";
		public static const PREV:String = "PlaylistEvent.PREV";
		public static const ENDLIST:String= "PlaylistEvent.ENDLIST";
		//}
		
		//{ MEMBERS
		private var position:int;
		private var playlist:Array;
		//}
		
		//{ GETTER-SETTER
		/**
		* Returns the playlist
		*  
		*  @return Array
		*/
		public function get Playlist():Array {
			return this.playlist;
		}

		/**
		* Current position in the playlist
		*  
		*  @return int
		*/
		public function get Position():int {
			return this.position;
		}

		
		//}
		
		//{ EVENT DEFINITION
		
		//}
		
		//{ INIT
		/**
		 * Event for playlist
		 * @param	_type	event type
		 * @param	list	playlist
		 * @param	pos		position on playlist
		 */
		public function PlaylistEvent(_type:String,list:Array,pos:int) {
			
			super(_type);
			playlist = list;
			position = pos;
			
			init();
		}
		private function init():void {
			
		}
		//}
		
		//{ PUBLIC METHODS
		
		//}
		
		//{ OVERRIDEN METHODS
		
		//}
		
		//{ PRIVATE METHODS
		
		//}
		
		//{ EVENT HANDLING
		
		//}
		
	}
	
}
